@import url(./variable.less);

// 首页内容模块

// 轮播图区域

.swiper {
    position: relative;
    height: 480px;

    div {
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -600px;
    }



    ul:nth-child(1) {
        height: 480px;
    }

    ul:nth-child(1) li {
        position: absolute;
        display: flex;
        justify-content: center;
        width: 100%;
        overflow: hidden;
        opacity: 0.2;
        transition: all .4s ease;
    }
    .selected {
        opacity: 1 !important;
        z-index: 999 !important;
    }
    ul:last-child {
        display: flex;
        justify-content: space-between;
        position: absolute;
        bottom: 10px;
        left: 50%;
        margin-left: -100px;
        width: 200px;
        li {
            z-index: 1000;
            float: left;
            width: 30px;
            height: 30px;
            text-align: center;
            line-height: 30px;
            background-color: pink;
            border-radius: 50%;
        }
        .active {
            background-color: skyblue;
        }
    }
    
    

    img {
        height: 480px;
        // transform: translateX(-25%);
    }

    .previous,.next {
        z-index: 1000;
        position: absolute;
        width: 100px;
        height: 50px;
        line-height: 50px;
        top: 50%;
        background-color: chocolate;
    }

    .previous {
        left: 0;
        text-align: center;
        color: #fff;
        transform: translateY(-50%) rotate(90deg);
    }

    .next {
        right: 0;
        text-align: center;
        color: #fff;
        transform: translateY(-50%) rotate(-90deg);
    }

    .previous:hover,
    .next:hover {
        color: @color3;
    }
}

// 内容区模块
.content {
    // margin: 50px 0;
    padding: 50px 30px;
    padding-bottom: 20px;
    background-color: #F5F5F5;

    &_top {

        a:hover {
            box-shadow: 0 15px 15px -10px rgba(0, 0, 0, 0.15)
        }

        &_top {
            ul {
                display: flex;
                justify-content: space-between;
            }

            ul li {
                width: 390px;
                height: 574px;
                background-color: #fff;
            }

            ul li a {
                display: flex;
                flex-direction: column;
                position: relative;
                // display: block;
                width: 100%;
                height: 100%;
                color: @color1;
            }

            ul li a:hover .item_top_a {
                opacity: 0;
                transition: all .4s ease;
            }

            ul li a:hover .item_top_b {
                opacity: 0;
                transition: all .4s ease;
            }

            ul li a:hover .item_top_c {
                opacity: 1;
                transition: all .4s ease;
            }

            .item_top {
                flex: 1.4;

                // border: 1px solid skyblue;
                &_a {
                    width: 100%;
                    opacity: 1;
                    transition: all .4s ease;
                }

                &_b {
                    width: 90%;
                    position: absolute;
                    left: 14px;
                    top: 75px;
                    opacity: 1;
                    transition: all .4s ease;
                }

                &_c {
                    position: absolute;
                    top: 40px;
                    width: 100%;
                    opacity: 0;
                    transition: all .4s ease;
                }
            }

            .item_bottom {
                flex: 1;
                // position: absolute;
                // bottom: 0;
                padding-top: 26px;
                text-align: center;

                // background-color: pink;
                h2 {

                    font-size: 28px;
                }

                &_a {
                    margin-top: 10px;
                    font-size: 12px;
                }

                &_b {
                    margin-top: 16px;
                    padding: 0 14px;
                    font-size: 14px;
                }

                &_c {
                    margin-top: 35px;
                }
            }
        }

        &_bottom {
            margin-top: 30px;
            text-align: center;
            p {
                margin-top: 50px;
                font-size: 24px;
                color: @color1;
            }
            &_left {
                float: left;
                // display: block;
                width: 592px;
                height: 400px;
                background: url(https://stormsend1.djicdn.com/stormsend/uploads/8193accf66654676425ca7c303d37c77.jpg);
                background-repeat: no-repeat;
                background-size: cover;
            }
            &_right {
                float: right;
                // display: block;
                width: 592px;
                height: 400px;
                background: url(https://stormsend1.djicdn.com/stormsend/uploads/8193accf66654676425ca7c303d37c77.jpg);
                background-repeat: no-repeat;
                background-size: cover;
            }
        }
    }

    &_bottom {
        margin-top: 100px;
        &_header {
           h2 {
            font-size: 32px;
            font-weight: bold;
            color: @color1;
            float: left;
           } 
           a {
            float: right;
            color: @color1;
           }
           a:hover {
            color: @color3;
           }
        }

        &_top {
            margin-top: 20px;
            &_left:hover {
                box-shadow: 0 15px 15px -10px rgba(0, 0, 0, 0.15)
            }
            &_left {       
                width: 600px;
                height: 400px;
                float: left;
                background-color: #fff;
                a {
                    display: flex;
                    align-items: center;
                    height: 100%;
                    color: @color1;
                }
                a img {
                    display: inline-block;
                    width: 260px;
                }
                a span h2 {
                    margin-bottom: 15px;
                    font-size: 24px;
                    font-weight: bold;
                }
                
                a span &_a {
                    margin-bottom: 15px;
                    font-size: 14px;
                }
            }
            &_right {
                float: right;
                video {
                    display: block;
                    width: 600px;
                }
            }
        }

        &_bottom {
            li:hover {
                box-shadow: 0 15px 15px -10px rgba(0, 0, 0, 0.15)
            }

            li:hover .content_bottom_bottom_top_hover {
                opacity: 1;
            }
    
            margin-top: 20px;
            li {
                margin-bottom: 20px;
                margin-right: 16px;
                float: left;
                position: relative;
                width: 288px;
                height: 420px;
                background-color: #fff;
            }
            li:nth-child(4){
                margin-right: 0;
            }
            li:nth-child(8) {
                margin-right: 0;
            }
            li a {
                display: block;
                height: 100%;
            }
            li a {
                color: @color1;
                div {
                    text-align: center;
                    width: 100%;
                    float: left;
                }
                .content_bottom_bottom_top {
                    height: 288px;
                    // border: 1px solid pink;
                    img {
                        width: 100%;
                        opacity: 1;
                        transition: all .4s ease;
                    }
                    &_hover {
                        position: absolute;
                        top: 0;
                        opacity: 0;
                        transition: all .4s ease;
                        img {
                            width: 100%;
                            height: 100%;
                        }
                    }
                    &_hover p {
                        box-sizing: border-box;
                        position: absolute;
                        width: 100%;
                        left: 0;
                        bottom: 0;
                        padding: 10px;
                        font-size: 14px;
                        background-color: rgba(0, 0, 0, .3);
                        color: #fff;
                    }

                }
                .content_bottom_bottom_bottom {
                    padding-top: 30px;
                    height: 420px - 288;
                    // border: 1px solid skyblue;
                    p:nth-child(1) {
                        font-size: 18px;
                        margin-bottom: 30px;
                    }

                    p:nth-child(2) {
                        font-size: 14px;
                    }
                }

            }
        }

    }

}